package com.yun.algorithmproblem.leetcode;

public class Leetcode3280 {

    public static void main(String[] args) {
        Leetcode3280 obj=new Leetcode3280();
        String date="2080-02-29";
        obj.convertDateToBinary(date);
    }

    public String convertDateToBinary(String date) {
        return Integer.toBinaryString(Integer.parseInt(date.substring(0,4))) + '-' +
                Integer.toBinaryString(Integer.parseInt(date.substring(5,7))) + '-' +
                Integer.toBinaryString(Integer.parseInt(date.substring(8,10)));
    }
}
